﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchUC.ascx.cs" Inherits="Indochinaodyssey.UserControl.Search.Search" %>
<div class="quick-search">
    <div class="quick-search-title">
    </div>
    <div class="quick-search-content">
        <asp:Label ID="lblType" CssClass="quick-search-content-left" runat="server" Text="Cruises type"></asp:Label>
        <asp:DropDownList CssClass="quick-search-content-right" ID="ddlType" 
            runat="server" DataSourceID="SqlDataSourceLoai" DataTextField="TenTheLoai" 
            DataValueField="ID" onprerender="ddlType_PreRender">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSourceLoai" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [TenTheLoai], [ID] FROM [tblTheLoai]">
        </asp:SqlDataSource>
        <br />
        <br />
        <asp:Label ID="lblPrice" CssClass="quick-search-content-left" runat="server" Text="Price">
        </asp:Label>
        <asp:DropDownList CssClass="quick-search-content-right" ID="ddlPrice" 
            runat="server" DataSourceID="SqlDataSourceSearch" DataTextField="Price" 
            DataValueField="ID">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSourceSearch" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [Search]"></asp:SqlDataSource>
        <br />
        <br />
        <div class="quick-search-content-left">
        </div>
        <asp:Button ID="btnSearch" runat="server" Text="Search" Height="25px" 
            Width="64px" onclick="btnSearch_Click" /><br />
    </div>
</div>
